Brion Vibber [Sat, 28 Aug 2004 00:38:59 +0000 (00:38 +0000)]
Don't display Upload link in Monobook sidebar if uploading is disabled.
Tim Starling [Fri, 27 Aug 2004 14:55:41 +0000 (14:55 +0000)]
Abstracted site name in LanguageFi.php. This required the implementation of general handling for inflected languages, in particular the {{grammar:}} tag
Tim Starling [Fri, 27 Aug 2004 13:42:09 +0000 (13:42 +0000)]
Fixed notice due to main-cleanup being entered at level 0
Tim Starling [Fri, 27 Aug 2004 13:40:27 +0000 (13:40 +0000)]
Table prefix bugs
Jens Frank [Fri, 27 Aug 2004 06:16:16 +0000 (06:16 +0000)]
removed forgotten debugging statement
Jens Frank [Fri, 27 Aug 2004 06:15:13 +0000 (06:15 +0000)]
cleanup of unused categoryMagic code
Jens Frank [Fri, 27 Aug 2004 05:23:52 +0000 (05:23 +0000)]
ENH#169: Provide plugin interface for skins. See also module "sampleskin" in extensions.
Jens Frank [Thu, 26 Aug 2004 20:45:26 +0000 (20:45 +0000)]
Remove call to parserOptions::setUseCategoryMagic. No longer needed with CategoryPage.php
Jens Frank [Thu, 26 Aug 2004 18:48:13 +0000 (18:48 +0000)]
BUG#206: replace <!--LINK tags by the link text for displaying text in TOCs
Thanks to Daniel D�sentrieb for his help writing the regexp.
Jens Frank [Wed, 25 Aug 2004 19:18:34 +0000 (19:18 +0000)]
Make ot=html default, as most user will probably use that view. ENH#185
Brion Vibber [Wed, 25 Aug 2004 17:24:31 +0000 (17:24 +0000)]
Old log page -> logging table importer.
Not yet fully functional.
Brion Vibber [Wed, 25 Aug 2004 17:23:25 +0000 (17:23 +0000)]
Remove obsolete notice about server times from upload, delete log header texts.
Brion Vibber [Wed, 25 Aug 2004 02:13:32 +0000 (02:13 +0000)]
Show pretty localized log names in Recentchanges instead of Special:Log/upload etc
Brion Vibber [Wed, 25 Aug 2004 02:12:02 +0000 (02:12 +0000)]
NS_PROJECT, NS_PROJECT_TALK -- will phase out NS_WIKIPEDIA et all later
Jens Frank [Tue, 24 Aug 2004 20:41:07 +0000 (20:41 +0000)]
Split user table into two parts: user and user_rights, for single login. BUG#57
Jens Frank [Tue, 24 Aug 2004 19:26:21 +0000 (19:26 +0000)]
Replaced old setIgnoreSQLErrors by newer ignoreErrors
Erik Moeller [Tue, 24 Aug 2004 18:04:37 +0000 (18:04 +0000)]
do not parse malformed sections for section editing (fix bug #186)
Brion Vibber [Tue, 24 Aug 2004 17:56:20 +0000 (17:56 +0000)]
Check for validation mode and load validation code if necessary before trying to use it.
Erik Moeller [Tue, 24 Aug 2004 17:40:13 +0000 (17:40 +0000)]
use reference instead of value for title object parameter
Erik Moeller [Tue, 24 Aug 2004 17:19:37 +0000 (17:19 +0000)]
adds '->' links to section before autogenerated section edit comments,
in recent changes, history, watchlist and contributions list. '->' is
defined in MediaWiki:sectionlink.
closes http://bugzilla.wikipedia.org/show_bug.cgi?id=45
Brion Vibber [Tue, 24 Aug 2004 08:11:46 +0000 (08:11 +0000)]
Special:Log and the logging table -- unified logging scariness!
Replaces the ugly, often breaking, manually archived log pages with
a nice clean table which can be sorted, trimmed, viewed in pieces, etc.
You can see all logged actions by some user, or affecting some page,
and can combine the views of all all logs in one.
There are probably still some broken things in here, but I want this
committed before the patch gets any bigger.
recentchanges table is altered to make rc_namespace signed so Special:
links can be listed in it.
Brion Vibber [Tue, 24 Aug 2004 03:10:51 +0000 (03:10 +0000)]
Patch by Ivan Krstic, slightly modified, for the session handler wrong setting problem.
Bug 179: Detect when session.save_handler set incorrectly
http://bugzilla.wikipedia.org/show_bug.cgi?id=179
Jens Frank [Mon, 23 Aug 2004 18:49:05 +0000 (18:49 +0000)]
New global setting: wgUserTablePrefix
set wgUserTablePrefix to the name of the DB where your users
table is for single login. Disabled by default.
If set, the users table will be fetched from another MySQL schema (called
database by MySQL). Can not be on a different MySQL server, though.
Brion Vibber [Mon, 23 Aug 2004 02:19:02 +0000 (02:19 +0000)]
Start migrating wfCheckLimits to WebRequest::getLimitOffset()
Antoine Musso [Mon, 23 Aug 2004 00:49:02 +0000 (00:49 +0000)]
rewrite of the dmoz-like category browser. Known bugs: makeKnownLink instead of makeLink, <br> is put at beginning instead of the end
Brion Vibber [Sun, 22 Aug 2004 23:55:36 +0000 (23:55 +0000)]
Add back the slower version of Title::makeTitle as Title::makeTitleSafe()
and use it in a few places where user names, images, or messages are being
used to create titles.
Brion Vibber [Sun, 22 Aug 2004 23:40:26 +0000 (23:40 +0000)]
Change 'welcomecreation' and 'loginsuccess' messages from HTML to WikiText.
Fix XML well-formedness error in the creation message.
Brion Vibber [Sun, 22 Aug 2004 23:32:05 +0000 (23:32 +0000)]
Fix typo in quote conversion
Brion Vibber [Sun, 22 Aug 2004 23:19:12 +0000 (23:19 +0000)]
Set up the Title fields directly in Title::makeTitle(), skipping the
secureAndSplit() step. This saves a lot of time and memory when working
with titles that are known-good (coming out of the database or other
Title objects, for instance).
Warning: if you feed invalid input to makeTitle() it will *not* be
checked for validity anymore and may do bad things. Don't do that.
Brion Vibber [Sun, 22 Aug 2004 22:22:54 +0000 (22:22 +0000)]
* Fix notice in PHP output mode
* Fix XML well-formedness error in header (escape those URLs!)
* Redo 'HTML' mode to output HTML directly instead of wiki-HTML hybrid.
This runs over 3 times faster and uses a lot less memory. However it
still doesn't work with an 8mb memory_limit...
Jens Frank [Sun, 22 Aug 2004 22:03:51 +0000 (22:03 +0000)]
Make [delete] and (delete all revisions) links act the same way:
Delete all old revisions and the image description page
Antoine Musso [Sun, 22 Aug 2004 17:42:53 +0000 (17:42 +0000)]
some " to ' conversions
Antoine Musso [Sun, 22 Aug 2004 17:24:50 +0000 (17:24 +0000)]
massive double to single quotes conversion. I have not noticed any bug after a lot of testing
Brion Vibber [Sun, 22 Aug 2004 09:57:12 +0000 (09:57 +0000)]
Remove what seems to be an accidentally checked-in testing line:
'/([^> ]+(0(1|3|9);)[^< ]*)/i' => '<span class="diacrit">\\1</span>',
(Originally added by gwicke in revision 1.197)
With very long 'words' this regexp is super slow, and causes timeouts:
Bug 183: timeout in Parser.php with Tidy
http://bugzilla.wikipedia.org/show_bug.cgi?id=183
Jens Frank [Sun, 22 Aug 2004 09:42:12 +0000 (09:42 +0000)]
Moved category stuff to CategoryPage, copying logic of ImagePage
Brion Vibber [Sun, 22 Aug 2004 09:08:04 +0000 (09:08 +0000)]
Change some search index update code to do two regexps backwards.
These tail-anchored regexps are insanely slow. The worst case comes
when Japanese or Chinese text (ie, no word spacing) is written on
a wiki configured for Western UTF-8 mode: the Unicode characters are
expanded to hex codes and the "words" are very long paragraph-length
monstrosities. On a large page the previous regexps may take over 20
seconds *each* on a 1GHz-level processor on such pages of non-trivial
length...
The reversed versions which are consistently much faster, for instance
by a factor of 10000 for the pathological case and a factor of 10 for
more typical English-style pages.
Brion Vibber [Sun, 22 Aug 2004 09:07:31 +0000 (09:07 +0000)]
Add some profiling points
Arne Heizmann [Sun, 22 Aug 2004 08:51:28 +0000 (08:51 +0000)]
code readability
Jens Frank [Sun, 22 Aug 2004 07:38:16 +0000 (07:38 +0000)]
BUG#175 Don't show confusing "* (Lschen) (Aktuell) 23:59, 31. Dez 1969 . . ( Byte)" line
if there is no entry in the database
Jens Frank [Sun, 22 Aug 2004 07:22:13 +0000 (07:22 +0000)]
Fix notice regarding invalid array index -1
Antoine Musso [Sat, 21 Aug 2004 23:16:32 +0000 (23:16 +0000)]
removing call to the database for "recentchangestext". That's automaticly get by calling wfMsg( "recentchangestext" )
Antoine Musso [Sat, 21 Aug 2004 23:11:54 +0000 (23:11 +0000)]
double to single quotes
Antoine Musso [Sat, 21 Aug 2004 22:39:56 +0000 (22:39 +0000)]
Fix bugzilla bug #100. Redirects can be done to category either by:
#REDIRECT [[Category:Music]] (article will be in the category)
or
#REDIRECT [[:Category:Music]] (article left out of category)
Antoine Musso [Sat, 21 Aug 2004 22:11:50 +0000 (22:11 +0000)]
Make a link to wfMsg('disambiguationspage')
Antoine Musso [Sat, 21 Aug 2004 22:05:47 +0000 (22:05 +0000)]
Moving disambiguations code from specialMaintenance. Fixing the function meantime
Brion Vibber [Sat, 21 Aug 2004 20:57:47 +0000 (20:57 +0000)]
* Fix notice from uninitialized variable in date()
* Call up to LanguageUtf8::stripForSearch to do the actual case folding/armoring. Reduces code duplication and works when using mb_* mode
Antoine Musso [Sat, 21 Aug 2004 19:59:43 +0000 (19:59 +0000)]
Reverting patch 1.246 made by Guillaume. It breaks things such as [[100]].
Tim Starling [Sat, 21 Aug 2004 15:14:56 +0000 (15:14 +0000)]
minor bug fix
Tim Starling [Sat, 21 Aug 2004 15:04:41 +0000 (15:04 +0000)]
replaceLinkHolders -> transformBuffer
Tim Starling [Sat, 21 Aug 2004 14:56:07 +0000 (14:56 +0000)]
Replaced link holders with actual links before saving into the cache, thereby speeding up parser cache hits. Profiling confirms a marked decrease in cache hit service time
Tim Starling [Sat, 21 Aug 2004 14:14:58 +0000 (14:14 +0000)]
Hey! Stop breaking my functions!
Tim Starling [Sat, 21 Aug 2004 13:59:48 +0000 (13:59 +0000)]
New feature: Turck MMCache shared memory as a lightweight, windows-compatible replacement for memcached
Tim Starling [Sat, 21 Aug 2004 13:57:47 +0000 (13:57 +0000)]
Sort results by total time
Tim Starling [Sat, 21 Aug 2004 11:40:18 +0000 (11:40 +0000)]
Fixed bug which caused ru.wikipedia to go offline when someone put in MediaWiki:Mainpage
Brion Vibber [Sat, 21 Aug 2004 10:13:36 +0000 (10:13 +0000)]
Rip out some old debugging code from when this was new.
Brion Vibber [Sat, 21 Aug 2004 10:04:30 +0000 (10:04 +0000)]
Only load memcached-client.php if we're really using it. Saves about 120kb memory when off.
Brion Vibber [Sat, 21 Aug 2004 09:51:01 +0000 (09:51 +0000)]
Don't include SearchEngine.php when it's not used. Saves about 180k of memory at runtime.
Brion Vibber [Sat, 21 Aug 2004 09:32:34 +0000 (09:32 +0000)]
Don't load DifferenceEngine.php when not needed. This saves 200-300kb of ram.
Brion Vibber [Sat, 21 Aug 2004 09:25:24 +0000 (09:25 +0000)]
Fix notices from stupid code in last commit
Brion Vibber [Sat, 21 Aug 2004 08:54:52 +0000 (08:54 +0000)]
Don't bother loading $wikiLowerChars and $wikiUpperChars if the mb_*
functions are available. This saves about 100kb of precious memory.
Also fixed a buglet in the mb_* version of unicode search stripping,
and some notices in zh.
Brion Vibber [Sat, 21 Aug 2004 08:50:49 +0000 (08:50 +0000)]
Stray space
Brion Vibber [Sat, 21 Aug 2004 08:27:03 +0000 (08:27 +0000)]
Record and report memory usage change in profiling.
(Only works on PHP 4.3.2 or higher with --enable-memory-limit, otherwise reports 0.)
Tim Starling [Fri, 20 Aug 2004 15:32:56 +0000 (15:32 +0000)]
fix notice
Tim Starling [Fri, 20 Aug 2004 14:59:49 +0000 (14:59 +0000)]
FOR UPDATE mode for Article class, and for getArticleID function of Title. Using these modes in EditPage.php to prevent odd things happening on section edits and merged conflicts
Tim Starling [Fri, 20 Aug 2004 14:50:03 +0000 (14:50 +0000)]
Fixed profiling
Domas Mituzas [Fri, 20 Aug 2004 13:43:45 +0000 (13:43 +0000)]
fixup timestamps
Domas Mituzas [Fri, 20 Aug 2004 12:47:46 +0000 (12:47 +0000)]
fixup timestamps
Domas Mituzas [Fri, 20 Aug 2004 12:47:12 +0000 (12:47 +0000)]
database abstraction
Domas Mituzas [Fri, 20 Aug 2004 12:46:40 +0000 (12:46 +0000)]
fix $mLastResult, affectedRows()
Domas Mituzas [Fri, 20 Aug 2004 11:01:36 +0000 (11:01 +0000)]
database timestamp fixup
Domas Mituzas [Fri, 20 Aug 2004 10:32:12 +0000 (10:32 +0000)]
remove bad functions:
wfLimitResult() - replaced by Database::limitResult()
QueryPage::getOrderLimit() - replaced by getOrder() + Database::limitResult()
Domas Mituzas [Thu, 19 Aug 2004 13:02:01 +0000 (13:02 +0000)]
allow getField, selectField and select to have empty conditions and table names.
Domas Mituzas [Thu, 19 Aug 2004 13:00:34 +0000 (13:00 +0000)]
add reportQueryError, halting on any error
Domas Mituzas [Thu, 19 Aug 2004 12:59:57 +0000 (12:59 +0000)]
fixup database timestamps
Arne Heizmann [Thu, 19 Aug 2004 11:44:27 +0000 (11:44 +0000)]
Add the 'templatesused' message used by JeLuf's new feature
Arne Heizmann [Thu, 19 Aug 2004 11:43:48 +0000 (11:43 +0000)]
fix indentation
Jens Frank [Thu, 19 Aug 2004 11:26:44 +0000 (11:26 +0000)]
Show list of templates used by this page at the end of the EditPage. Bugzilla#143
Brion Vibber [Thu, 19 Aug 2004 08:44:13 +0000 (08:44 +0000)]
Add some more profiling points
Tim Starling [Wed, 18 Aug 2004 14:39:17 +0000 (14:39 +0000)]
Patch to formatComment() to fix otherwise-unrecognised links with an initial colon, written by Kate-
Magnus Manske [Wed, 18 Aug 2004 08:21:35 +0000 (08:21 +0000)]
To-be XML parser
Brion Vibber [Wed, 18 Aug 2004 05:45:25 +0000 (05:45 +0000)]
Use ob_implicit_flush() rather than ob_end_flush() in install-utils.
Ending the buffering completely will kill all subsequent output when
PHP is globally configured to run through a gzip compression handler.
Also, suppress the warning in LocalSettings.php when PHP tells us we
can't run the gzip filter twice.
Brion Vibber [Wed, 18 Aug 2004 00:04:06 +0000 (00:04 +0000)]
The last checkin changed 'copyrightwarning' in a way that broke if the
wiki wasn't configured to provide copyright metadata, and requires editing
or rebuilding the message if the configuration is changed.
Now uses the value in existence at runtime so it can be reconfigured more
easily, and adds a 'copyrightwarning2' message which changes the wording
a bit to be used when no copyright metadata is provided.
This change should be more upwards-compatible. Also, changed 'copyrightwarning'
to be wikitext instead of raw HTML; this shouldn't break any of the built-in
texts but might requires adjustment to customized versions.
Jens Frank [Tue, 17 Aug 2004 21:07:14 +0000 (21:07 +0000)]
On image pages, limit image width to $wgMaxImageWidth.
If $wgUseImageResize is set, the image will be resized to fit this limit.
The resized image links to the big image.
Default for $wgMaxImageWidth is 800 pixels. Set to really big values (like
9999999) to disable.
Arne Heizmann [Tue, 17 Aug 2004 17:35:50 +0000 (17:35 +0000)]
use $wgRightsText in copyrightwarning
Guillaume Blanchard [Tue, 17 Aug 2004 15:42:42 +0000 (15:42 +0000)]
*fix bug in non-breaking space regexp
*add non-breaking code for French numbers
*set MAX_INCLUDE_REPEAT to 100 (I'll remove it when I'll update the per page size max)
Brion Vibber [Mon, 16 Aug 2004 23:57:25 +0000 (23:57 +0000)]
Do final link replacement with preg_replace_callback instead of str_replace on giant arrays.
Speeds up this part on a Village Pump copy by a factor of 20 over the
previous explode() hack and by a factor of 200 over the original method.
Magnus Manske [Mon, 16 Aug 2004 21:39:56 +0000 (21:39 +0000)]
Dirty hack for time-consuming str_replace
Antoine Musso [Mon, 16 Aug 2004 20:14:35 +0000 (20:14 +0000)]
double to single quotes.
Antoine Musso [Mon, 16 Aug 2004 20:01:21 +0000 (20:01 +0000)]
* some comments (using # instead of /* */ )
* function foobar () { shema
Brion Vibber [Mon, 16 Aug 2004 19:06:03 +0000 (19:06 +0000)]
* Add more profiling granularity to replaceLinkHolders
* Split a couple "?>" instances in string literals -- these hose some syntax highlighters
Antoine Musso [Mon, 16 Aug 2004 15:29:17 +0000 (15:29 +0000)]
more double to single quotes
Antoine Musso [Mon, 16 Aug 2004 15:23:46 +0000 (15:23 +0000)]
Comments, double to single quotes, foobar () { shema.
Tim Starling [Mon, 16 Aug 2004 13:25:09 +0000 (13:25 +0000)]
More informative Special:Export text copied from en
Domas Mituzas [Mon, 16 Aug 2004 11:47:56 +0000 (11:47 +0000)]
Enter 10x more efficient stripForSearch code.
This method returns lowercased string (same
as in Language). Other stripForSearch'es should
be reviewed and later double efforts to lowercase
text in SearchUpdate, SearchEngine and elswhere
removed.
Brion Vibber [Mon, 16 Aug 2004 09:50:02 +0000 (09:50 +0000)]
Start on 1.4 release notes, so we don't forget what we did.
Domas Mituzas [Mon, 16 Aug 2004 09:12:22 +0000 (09:12 +0000)]
Comments:Fix stale comments, this file isn't just a wrapper, also add a note on mbstring
Domas Mituzas [Mon, 16 Aug 2004 08:35:27 +0000 (08:35 +0000)]
Commit in resource efficient lcfirst and ucfirst
Uses PHP mbstring feature, in case it is compiled in.
In case of language-dependant failures,
those should be solved in Language classes.
Jens Frank [Mon, 16 Aug 2004 04:42:48 +0000 (04:42 +0000)]
Don't follow redirects pointing to Special:Userlogout
Brion Vibber [Mon, 16 Aug 2004 01:59:53 +0000 (01:59 +0000)]
Validation tweaks:
* Code style consistency
* Use $wgRequest (comments now correctly encoded for eo)
* When disabled, show 'nosuchaction' and 'nosuchspecialpage' errors if triggered
Antoine Musso [Sun, 15 Aug 2004 23:48:39 +0000 (23:48 +0000)]
Fix sourceforge bug #811928:
Removed several occurences of "\r" which break headers in Outlook at least.
Tested ok on mozilla-thunderbird and The-Bat